package com.demo.helloword.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Model -
 * @Create by 2024/3/25 16:43
 * @Author xxxx
 * @Explain <p>_</p>
 */
@RestController
@ResponseBody
@RequestMapping("api")
public class DemoController {
    private static final Logger log = LoggerFactory.getLogger(DemoController.class);

    @RequestMapping("/hello")
    public String hello(){
        log.info("hello Word");
        return "hello Word";
    }
}
